import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const COMMON: AppRouteRecordRaw = {
    path: '/common',
    name: 'common',
    component: DEFAULT_LAYOUT,
    meta: {
        locale: 'menu.common',
        requiresAuth: true,
        icon: 'icon-common',
        order: 900,
    },
    children: [
        {
            path: 'banner',
            name: 'CommonBanner',
            component: () => import('@/views/common/banner.vue'),
            meta: {
                locale: 'menu.common.banner',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-swap'
            },
        },
        {
            path: 'ann',
            name: 'CommonAnn',
            component: () => import('@/views/common/ann.vue'),
            meta: {
                locale: 'menu.common.ann',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-message'
            },
        },
        {
            path: 'menu',
            name: 'CommonMenu',
            component: () => import('@/views/common/menu.vue'),
            meta: {
                locale: 'menu.common.menu',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-menu'
            },
        },
        {
            path: 'note',
            name: 'CommonNote',
            component: () => import('@/views/common/note.vue'),
            meta: {
                locale: 'menu.common.note',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-phone'
            },
        },
        {
            path: 'comment',
            name: 'CommonComment',
            component: () => import('@/views/common/comment.vue'),
            meta: {
                locale: 'menu.common.comment',
                requiresAuth: true,
                roles: ['*'],
                icon: 'icon-shrink'
            },
        }
    ],
};

export default COMMON;
